#include <stdio.h>
#include <string.h>
#include <unistd.h>

int main(int argc,char **argv)
{
	char name[128]={0};
	if(argc == 2)
	{
		strncpy(name,argv[1],127);
	}
	else
	{
		strncpy(name,"/tmp/mysqlfifo",127);
	}
	FILE *fp=fopen(name,"r+");
	if(!fp) return -1;
	char buf[4096];
	for(;;)
	{
		memset(buf,0,4096);
		fread(buf,4096,1,fp);
	}
	fclose(fp);
}	
		
		
